package org.tis.tools.abf.module.om.service;

import com.baomidou.mybatisplus.service.IService;
import org.tis.tools.abf.module.om.controller.request.OmEmpPositionRequest;
import org.tis.tools.abf.module.om.entity.OmEmpPosition;
import org.tis.tools.abf.module.om.exception.OrgManagementException;

import java.util.List;

/**
 * omEmpPosition的Service接口类
 * 
 * @author Auto Generate Tools
 * @date 2018/04/23
 */
public interface IOmEmpPositionService extends IService<OmEmpPosition>  {

    /**
     * 新增
     * @param omEmpPositionRequest
     * @throws OrgManagementException
     */
    void add(OmEmpPositionRequest omEmpPositionRequest)throws OrgManagementException;

    /**
     * 根据员工和岗位ID删除岗位员工
     * @param guidEmp
     * @param guidPosition
     */
    void deleteByEmpPositionId(String guidEmp,String guidPosition)throws OrgManagementException;

    /**
     * 批量删除的接口
     * @param positionGuid 岗位GUID
     * @param empGuids 员工的GUID集合
     * @throws OrgManagementException 异常
     */
    void batchDelete(String positionGuid, List<String> empGuids)throws OrgManagementException;

}

